from django.db import models

# Create your models here.
from django.db import models


# Create your models here.


class UserInfo(models.Model):
    id = models.AutoField(primary_key=True)  # 如果表里面没有写主键，表里面会自动生成一个自增主键字段，叫做id字段，orm要求每个表里面必须要写一个主键
    username = models.CharField(verbose_name="用户名", max_length=32)
    password = models.CharField(verbose_name="密码", max_length=32)
    mobile_phone = models.CharField(verbose_name="手机号", max_length=32)
    email = models.EmailField(verbose_name="邮箱", max_length=32)
    crdate = models.DateField(auto_now_add=True)
    nowdate = models.DateField(auto_now=True)



